Main Page | Class Hierarchy | Class List | Class Members

MPNewPlayer Class Reference

MP Game new player joined message (Type: 2). More...

#include <BustaNetInternal.h>

Inheritance diagram for MPNewPlayer:

BustaNetInternalMsg List of all members.

Public Member Functions

 MPNewPlayer (int pID, char *pName)
 CONSTRUCTOR.
int getPlayerID ()
 Returns the new player's identification number.
char * getPlayerName ()
 Returns the new player's name.

Detailed Description

MP Game new player joined message (Type: 2).

This message is received when a new player has joined the multiplayer game. When a client receives this message they are notified of the new player's identification number and name.


Constructor & Destructor Documentation

MPNewPlayer::MPNewPlayer int  pID,
char *  pName
 

CONSTRUCTOR.

Creates an instance of the MPNewPlayer class.

Parameters:
pID The identification number of the new player
pName The name of the new player


Member Function Documentation

int MPNewPlayer::getPlayerID  ) 
 

Returns the new player's identification number.

Returns the integer identification number of the player who has just joined the game.

Returns:
The identification number of the new player

char * MPNewPlayer::getPlayerName  ) 
 

Returns the new player's name.

Returns the name of the new player.

Returns:
The name of the new player


Generated on Sun Aug 14 22:24:57 2005 for BustaSandwich Networking by  doxygen 1.4.2-20050421